#include "BangoPoster.h"

BangoPoster::BangoPoster(BangoLogger * logger, bool postCurrent)
{
	_bangoLogger = logger;
	_postCurrent = postCurrent;
}

BangoPoster::~BangoPoster()
{

}

void BangoPoster::run()
{
    _bangoLogger->PostStoredEvents();
    if (_postCurrent)
    {
        _bangoLogger->PostCurrentEvents();
    }
}
